package com.tjmc.nsia.core.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @date 2024/06/22
 */
@TableName("nsia_chat")
public class NsiaChat implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer stream;

    private String question;

    private String answer;

    private String chatId;

    private Integer sessionId;

    private Integer showLoading;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private Long userId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStream() {
        return stream;
    }

    public void setStream(Integer stream) {
        this.stream = stream;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getChatId() {
        return chatId;
    }

    public void setChatId(String chatId) {
        this.chatId = chatId;
    }

    public Integer getSessionId() {
        return sessionId;
    }

    public void setSessionId(Integer sessionId) {
        this.sessionId = sessionId;
    }

    public Integer getShowLoading() {
        return showLoading;
    }

    public void setShowLoading(Integer showLoading) {
        this.showLoading = showLoading;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "NsiaChat{" +
        "id=" + id +
        ", stream=" + stream +
        ", question=" + question +
        ", answer=" + answer +
        ", chatId=" + chatId +
        ", sessionId=" + sessionId +
        ", showLoading=" + showLoading +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", userId=" + userId +
        "}";
    }
}
